<template>
  <div>
    <div class="my_div">
      <img :src="dogUrl" alt="" />
      <p @click="data">{{ dogName }}</p>
    </div>
  </div>
</template>

<script>
export default {
  props: ['dogUrl', 'dogName'],
  methods: {
    data() {
      console.log(this.dogUrl)
    },
  },
}
</script>

<style scoped>
.my_div {
  width: 200px;
  border: 1px solid black;
  text-align: center;
  float: left;
}

.my_div img {
  width: 100%;
  height: 200px;
}
</style>
